package com.ebeijia.service.user;

import java.util.List;
import java.util.Map;

import com.ebeijia.dto.HomSourceDto;
import com.ebeijia.dto.OrderInfoDto;
import com.ebeijia.exception.ServiceException;
import com.ebeijia.mybatis.pojo.UserInfo;
import com.ebeijia.service.pay.PayHandleService;
import com.ebeijia.web.ResponseMessage;
/**
 * 业务逻辑的接口
 * @author andy
 *
 */
public interface UserService extends PayHandleService{
	
	 /**
	  * 根据用户绑定查询
	  * @param id
	  * @return
	  */
	 UserInfo getUserId(String userNo);
	 /***
	  * 实现用户绑定信息 
	  * @return  User
	  * @param   user
	  */
	 public void  insert(UserInfo user);
	
	 
	/***
	 * index 验证是否有openID   根据openId获取userId 
	 * return openId 
	 * @return 
	 */
	 public UserInfo getUserByopenId(String openId);
	 
	 /**
	  * 
	  * @param openId
	  * @return
	  */
	 List<UserInfo> getOpenId(String openId);
	 
		//测试存储过程返回游标
	public	List<Map<String, Object>> TestCURSOR(Map<String, Object> map);
	
	public ResponseMessage bindUserHome(UserInfo userInfo) throws ServiceException;
	
	public HomSourceDto queryUserInfoFromPkg(String hsUserNo) throws ServiceException;
	
	public ResponseMessage addOrderWithPay(OrderInfoDto orderInfoDto) throws ServiceException;
	
	public ResponseMessage addNewHomeSource(UserInfo userInfo) throws ServiceException;

}
